-- GENERATED SPELL FOR [Dredge Worm] --


function spell0_8925(pUnit, Event) --@Dredge Sickness,Self--
pUnit:FullCastSpellOnTarget(14535,pUnit)
pUnit:RegisterEvent('Sorts_8925', 660, 1)
end

function spell1_8925(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(13298,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8925', 30000, 1)
end

function spell2_8925(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(6917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8925', 12500, 1)
end

function Sorts_8925(pUnit, Event)
local choix_sorts_8925 = math.random(0, 2)
if choix_sorts_8925 == 0 then
pUnit:RegisterEvent('spell0_8925', 1, 1)
end
if choix_sorts_8925 == 1 then
pUnit:RegisterEvent('spell1_8925', 1, 1)
end
if choix_sorts_8925 == 2 then
pUnit:RegisterEvent('spell2_8925', 1, 1)
end
end

function mob8925_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8925', math.random(1500, 3000), 1)
end

function mob8925_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8925_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8925_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8925, 1, 'mob8925_Action')
RegisterUnitEvent(8925, 2, 'mob8925_Leave')
RegisterUnitEvent(8925, 3, 'mob8925_Kill')
RegisterUnitEvent(8925, 4, 'mob8925_Die')
